This works for me in the 6.5 and 5.0.11 clients in a categorised view using a category string as the key. When you say "User can't see document but he can see category" do you mean that the entry in question is protected by a Readers field? If so, you will still see the category, but not the document. Without testing this I can't be sure, but that may have an impact on whether the
NotesViewEntry is fully initialised or not.
You say the code works fine in R5... given the above, is it possible that the code was running on different data / under different user privileges? Also, you require an unambiguous match with your "True" argument -- could that be causing an issue? (e.g. stray spaces and the like).
--
http://www.benpoole.com